package com.example.project.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.Random;

@Configuration
public class AppConfig {

    // 注册 Random 类型的 Bean 到 Spring 容器
    @Bean
    public Random random() {
        return new Random();
    }
}
